package com.rdxer.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class Notice {
    @Id
    private String id;
    private Long createdDate;
    private String url;
    private String title;
    // 备注
    private String remark;

    private Boolean enable;

    private String tag;
    private String type;


    public enum TYPE {
        normal,
        // <el-tag>标签一</el-tag>
        success,
        //<el-tag type="success">标签二</el-tag>
        info,
        //<el-tag type="info">标签三</el-tag>
        warning,
        //<el-tag type="warning">标签四</el-tag>
        danger,
        //<el-tag type="danger">标签五</el-tag>
    }
}
